<template>
  <div>
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
    <Bar v-show="songList.length > 0 && !showDetail"></Bar>
    <!--v-show="songList.length > 0 && !showDetail"-->
  </div>
</template>

<script>
  import Bar from './components/playBar'
  import { mapGetters } from 'vuex'
  export default {
    name: 'app',
    components: {
      Bar
    },
    computed: {
      ...mapGetters([
        'songList',
        'showDetail'
      ])
    }
  }
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
